﻿using System;
using Autodesk.Revit.DB;

namespace Transfer.CrossDocument
{
	internal class HidePasteDuplicateTypesPreprocessor : IFailuresPreprocessor
	{
		public FailureProcessingResult PreprocessFailures(FailuresAccessor failuresAccessor)
		{
			foreach (FailureMessageAccessor failureMessageAccessor in failuresAccessor.GetFailureMessages())
			{
				failuresAccessor.DeleteWarning(failureMessageAccessor);
			}
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
